{template 'common/header'}
    <ul class="nav nav-tabs">
        <li class=""><a href="{php echo $this->createWebUrl("users");}">用户管理</a></li>
        <li class="active"><a href="#">{php echo $data['id']>0 ? '用户编辑' : '用户添加';}</a></a></li>    
        
    </ul>

<form action=""  method="post" class="form-horizontal form ng-pristine ng-valid" accept-charset="utf-8">
<input type="hidden" name="id" value="{$data['id']}" />
<input type="hidden" name="token" value="{$_W['token']}" />
<div class="panel panel-default">  
	<div class="panel-heading">
		基本信息
	</div>
                 
	<div class="panel-body">
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">openid</label>
			<div class="col-sm-8">
				<input name="openid" value="{$data['openid']}" class="form-control"/>
			</div>
		</div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">用户期限</label>
            <div class="col-sm-8 col-xs-12">
                {php echo tpl_form_field_daterange('datelimit', array('start'=>date('Y-m-d H:i',$data['begin_time']),'end'=>date('Y-m-d H:i',$data['end_time'])), true)}
            </div>
        </div>       
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">用户状态</label>
            <div class="col-sm-8 col-xs-12" style="margin-top:3px">
				<input type="radio" name="status" {if -1 == $data['status']}checked="checked"{/if} value="-1" />拒绝&nbsp;&nbsp;
                <input type="radio" name="status" {if 0 == $data['status']}checked="checked"{/if} value="0" />待定&nbsp;&nbsp;
                <input type="radio" name="status" {if 1 == $data['status']}checked="checked"{/if} value="1" />通过&nbsp;&nbsp;
            </div>
        </div>      
    </div>        
</div>


		<div class="form-group">
			<div class="col-sm-12">
			<input type="hidden" name="id" value="{$_GPC['id']}"/>
			<input type="submit"  name="submit" value="提交" class="btn btn-primary col-lg-1"/>
				
			</div>
		</div>
	

</form>

<script type="text/javascript">
require(['jquery', 'util'], function($, u){
	$(function(){
		//u.editor($('.richtext')[0]);
	});
});
</script>
{template 'common/footer'}